package org.mokusakura.domain.vo;

import org.mokusakura.domain.Item;

import java.math.BigDecimal;

/**
 * @author MokuSakura
 */
public class SimpleItem {
    private String itemId;
    private BigDecimal listPrice;
    private SimpleProduct product;

    public SimpleItem(Item item) {
        this.itemId = item.getItemId();
        this.listPrice = item.getListPrice();
        this.product = new SimpleProduct(item.getProduct());
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public BigDecimal getListPrice() {
        return listPrice;
    }

    public void setListPrice(BigDecimal listPrice) {
        this.listPrice = listPrice;
    }

    public SimpleProduct getProduct() {
        return product;
    }

    public void setProduct(SimpleProduct product) {
        this.product = product;
    }
}
